package com.jyw.business.comp.service.impl;

import java.util.List;
import com.jyw.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.jyw.business.comp.mapper.CompScheduleTeamMapper;
import com.jyw.business.comp.domain.CompScheduleTeam;
import com.jyw.business.comp.service.ICompScheduleTeamService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * 综合-班组配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-25
 */
@Service
public class CompScheduleTeamServiceImpl extends ServiceImpl<CompScheduleTeamMapper,CompScheduleTeam> implements ICompScheduleTeamService
{
    @Resource
    private CompScheduleTeamMapper compScheduleTeamMapper;

    /**
     * 查询综合-班组配置
     * 
     * @param id 综合-班组配置主键
     * @return 综合-班组配置
     */
    @Override
    public CompScheduleTeam selectCompScheduleTeamById(Long id)
    {
        return compScheduleTeamMapper.selectCompScheduleTeamById(id);
    }

    /**
     * 查询综合-班组配置列表
     * 
     * @param compScheduleTeam 综合-班组配置
     * @return 综合-班组配置
     */
    @Override
    public List<CompScheduleTeam> selectCompScheduleTeamList(CompScheduleTeam compScheduleTeam)
    {
        return compScheduleTeamMapper.selectCompScheduleTeamList(compScheduleTeam);
    }

    /**
     * 新增综合-班组配置
     * 
     * @param compScheduleTeam 综合-班组配置
     * @return 结果
     */
    @Override
    public int insertCompScheduleTeam(CompScheduleTeam compScheduleTeam)
    {
        compScheduleTeam.setCreateTime(DateUtils.getNowDate());
        return compScheduleTeamMapper.insertCompScheduleTeam(compScheduleTeam);
    }

    /**
     * 修改综合-班组配置
     * 
     * @param compScheduleTeam 综合-班组配置
     * @return 结果
     */
    @Override
    public int updateCompScheduleTeam(CompScheduleTeam compScheduleTeam)
    {
        return compScheduleTeamMapper.updateCompScheduleTeam(compScheduleTeam);
    }

    /**
     * 批量删除综合-班组配置
     * 
     * @param ids 需要删除的综合-班组配置主键
     * @return 结果
     */
    @Override
    public int deleteCompScheduleTeamByIds(Long[] ids)
    {
        return compScheduleTeamMapper.deleteCompScheduleTeamByIds(ids);
    }

    /**
     * 删除综合-班组配置信息
     * 
     * @param id 综合-班组配置主键
     * @return 结果
     */
    @Override
    public int deleteCompScheduleTeamById(Long id)
    {
        return compScheduleTeamMapper.deleteCompScheduleTeamById(id);
    }
}
